package com.song.cloud.payment.service.Impl;

import com.song.cloud.common.entities.Payment;
import com.song.cloud.payment.dao.paymentDao;
import com.song.cloud.payment.service.paymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author ZhangGuisong
 * @Date 2021/2/13-10:36
 */
@Service
public class paymentServiceImpl implements paymentService {
    @Autowired
   private   paymentDao paymentDao;
    @Override
    public int save(Payment payment) {
        return paymentDao.save(payment);
    }
    @Override
    public Payment query(Long id) {
        return paymentDao.query(id);
    }
}
